#!/usr/bin/env python
#coding:utf-8
# author : wangwei
# mail   ：alsww@qq.com
# oldboy s10 python training


#打印用户消费明细
def printList(n):

    print "您好： %s, 您的消费记录如下：:" %n
    print "帐号|时间|商品|价格|手续费"
    p = "record_list.txt"
    f1 = open(p,'r')
    for line in f1.readlines():
        if line.split('|')[0] == n:
            print line
